#include <iostream>
#include <string>

using namespace std;


class data;
// 时间
class Time
{
private:
    int hour;
    int min;
    int sec;

public:
    Time()
        : hour(0), min(0), sec(0)   {}
    Time(int hour, int min, int sec)
        : hour(hour), min(min), sec(sec)    {}

    ~Time() {}

public:
    // 显示时间
    void show_Time()
    {
        cout << this->hour << ":" << this->min << ":" << this->sec << endl;
    }

    void show_data_time(data & D);

};

// 日期
class data
{
private:
    int year;
    int month;
    int day;

public:
    data()
        : year(0), month(0), day(0) {}
    data(int year , int month , int day)
        : year(year), month(month), day(day)    {}

public:
    // 显示日期
    void show_Data()
    {
        cout << this->year << "/" << this->month << "/" << this->day << endl;
    }


    friend void Time::show_data_time(data & D);

};


void Time::show_data_time(data &D)
{
    cout << D.year << "/" << D.month << "/" << D.day << endl;
    cout << this->hour << ":" << this->min << ":" << this->sec << endl;
}


int main(int argc, char const *argv[])
{
    Time T(16 , 14 , 30);
    data D(2025 , 1 , 17);

    T.show_data_time(D);
    return 0;
}


